<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>

<script type="text/javascript" src="<%=request.getContextPath()%>/js/common/money2chinese.js"></script>

<title>借款合同</title><span id="navlink">&nbsp;&nbsp;&nbsp; 合同管理 &gt;&gt;合同生成&gt;&gt;借款合同生成</span>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/contract/contractLoan.js"></script>
<div id="msg"></div>
<form action="contractNewAction" method="post" id="form">
<table class="table_box table_all" cellspacing="0" cellpadding="0">
<tr>
	<td align="right"><span class="need">*</span>合同编号<input type="text" name="contractY" value="${contractY }" size="5"/>年
	<select name="contract.contracttype">
		<option value="">-----</option>
		<s:if test='F=="1"'>
		<option value="1" selected="true">个借</option>
		</s:if><s:else><option value="1">个借</option></s:else>
		<s:if test='F=="2"'>
		<option value="2" selected="true">企借</option>
		</s:if><s:else><option value="2">企借</option></s:else>
	</select>字第
	<input type="text" name="contractN" value="<s:text name="f.number"><s:param value="contractN"/></s:text>" size="10"/>号
	</td>
</tr>
</table>
<table class="table_box table_all_border" cellspacing="0" cellpadding="0">
<tr>
	<td style="width:20%" align="right">合同名称</td>
	<td style="width:30%"><input type="text" name="contract.contractname" value=""/></td>
	<td style="width:20%" align="right">借款人</td>
	<td style="width:30%"><input type="text" name="  name" value="${customname }" class="readonly" readonly="true"/></td>
</tr>
<tr>
	<td align="right">地址</td>
	<td colspan="3"><input type="text" name="address" value="${address }" class="readonly" readonly="true"/></td>
</tr>
<tr>
	<td align="right">电话</td>
	<td><input type="text" name="phone" value="${phone }" class="readonly" readonly="true"/></td>
	<td align="right">传真</td>
	<td><input type="text" name="fax" value="${fax }" class="readonly" readonly="true"/></td>
</tr>
<tr>
	<td align="right">法定代表人</td>
	<td><input type="text" name="Legalrepresentative" value="${Legalrepresentative }" class="readonly" readonly="true"/></td>
	<td align="right">职务</td>
	<td><input type="text" name="position" value="${position }" class="readonly" readonly="true"/></td>
</tr>
<tr>
	<td align="right">贷款金额</td>
	<td colspan="3"><input type="text" id="srcLower" name="contract.applymoney" value="${applymoney }" class="readonly" readonly="true"/>&nbsp;&nbsp;人民币(大写):<input style="width:50%" id="toUpper" class="readonly" readonly="true"/></td>
</tr>
<tr>
	<td align="right"><span class="need">*</span>贷款期限</td>
	<td colspan="3">&nbsp;&nbsp;&nbsp;自<input type="text" class="datepicker" name="contract.startdate" value=""/>&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;<input type="text" class="datepicker" name="contract.enddate" value=""/></td>
</tr>
<tr>
	<td align="right">贷款用途</td>
	<td colspan="3"><input style="width:50%" type="text" name="contract.loanpurpose" value="${loanpurpose }" class="readonly" readonly="true"/></td>
</tr>
<tr>
	<td align="right">基准利率</td>
	<td><input type="text" name="contract.applybaserate" value="<s:text name="f.number.five"><s:param value="applybaserate"/></s:text>" class="readonly" readonly="true"/>%</td>
	<td align="right">浮动比例</td>
	<td><input type="text" name="contract.slidingscale" value="<s:text name="f.number.five"><s:param value="slidingscale"/></s:text>" class="readonly" readonly="true"/>%</td>
</tr>
<tr>
	<td align="right">执行利率</td>
	<td><input type="text" name="contract.performrates" value="<s:text name="f.number.five"><s:param value="performrates"/></s:text>" class="readonly" readonly="true"/>%</td>
		<td align="right">还款方式</td>
	<td><select name="contract.modeofrepayment">
	<option value="1" <s:if test='modeofrepayment=="1"'>selected="selected"</s:if>>一次性偿还</option>
	<option value="2" <s:if test='modeofrepayment=="2"'>selected="selected"</s:if>>分期偿还</option>
	<option value="3" <s:if test='modeofrepayment=="3"'>selected="selected"</s:if>>按约还息一次性还本</option>
	<option value="4" <s:if test='modeofrepayment=="4"'>selected="selected"</s:if>>利随本清</option>
	<option value="5" <s:if test='modeofrepayment=="5"'>selected="selected"</s:if>>等额本金</option>
	<option value="6" <s:if test='modeofrepayment=="6"'>selected="selected"</s:if>>等额本息</option>
	<option value="7" <s:if test='modeofrepayment=="7"'>selected="selected"</s:if>>其他</option>
	</select></td>
</tr>
<tr>
	<td align="right"><span class="need">*</span>贷款发放次数</td>
	<td><input type="radio" name="loangranttype" value="1" id="once"/>一次发放
	<input type="radio" name="loangranttype" value="n" id="loangrant"/>分次发放
	<input type="text" name="granttime" value="" id="granttime"/></td>
	<td align="right"><span class="need">*</span>合同签订日期</td>
	<td><input type="text" class="datepicker" name="contract.contractdate" value=""/></td>
</tr>
<%-- <tr>
	<td align="right">业务员</td>
	<td><input type="text" name="" value=""/></td>
	<td align="right">操作日期</td>
	<td><input type="text" name="contract.createtime" value="<s:text name="f.date.ymd"><s:param value="curenttime"/></s:text>" class="readonly" readonly="true"/></td>
</tr> --%>
</table>
<table class="table_box table_bottom_border" id="thisisatable" cellspacing="0" cellpadding="0">
<tr></tr>
</table>
<div id="button_area">
	<div>
	<input type="hidden" name="contract.clientid" value="${clientid}"/>
	<input type="submit" value="下一步"/></div></div>
</form>